import Layout from '@/page/index/'

export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
      path: 'index',
      name: '首页',
      meta: {
        i18n: 'dashboard'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/wel/index')
    }, {
      path: 'dashboard',
      name: '控制台',
      meta: {
        i18n: 'dashboard',
        menu: false,
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
    }]
  }, {
    path: '/service_info_details',
    component: Layout,
    redirect: '/service_info_details',
    children: [{
      path: '/rb-service/serviceinfo/service_info_details',
      name: '服务商详情',
      meta: {
        i18n: 'service_info_details'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/serviceinfo/service_info_details')
    }]
  }, {
    path: '/pos_info_details',
    component: Layout,
    redirect: '/pos_info_details',
    children: [
      {
        path: '/rb-service/posinfo/pos_info_net_add',
        name: '新增商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_net')
      },
      {
        path: '/rb-service/posinfo/pos_info_net_edit',
        name: '编辑商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_net')
      },
      {
        path: '/rb-service/posinfo/pos_info_details',
        name: '商户详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_details')
      },
      {
        path: '/rb-service/posinfo/pos_info_reg_add',
        name: '登记商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_register')
      },
      {
        path: '/rb-service/posinfo/pos_info_reg_edit',
        name: '编辑商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_register')
      },
      {
        path: '/rb-service/posinfo/pos_info_reg_details',
        name: '商户详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_reg_details')
      },
      {
        path: '/rb-service/posinfo/pos_info_images_preview',
        name: '资质证件照预览',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_images_preview')
      },
      {
        path: '/rb-service/posinfo/manage',
        name: '店员管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/manage')
      },
      {
        path: '/rb-service/posinfo/pos_info_images',
        name: '资质证件照补充',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_images')
      },
      {
        path: '/rb-service/posinfo/pos_info_details_activity',
        name: '实名认证',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_details_activity')
      },
      {
        path: '/rb-service/posinfo/pos_info_rate',
        name: '签约费率',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_rate')
      },
      {
        path: '/rb-service/posinfo/pos_info_aisle',
        name: '通道配置',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_aisle')
      },
      {
        path: '/rb-service/posinfo/pos_info_aislepay',
        name: '支付公司配置',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_aislepay')
      },
      {
        path: '/rb-service/posinfo/pos_info_store',
        name: '门店管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_store')
      },
      {
        path: '/rb-service/posinfo/store',
        name: '绑定门店',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/terminalStore/store')
      },
      {
        path: '/rb-service/posinfo/cashier',
        name: '绑定收银员',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/terminalStore/cashier')
      },
      {
        path: '/rb-service/posinfo/terminal',
        name: '绑定终端',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/terminalStore/terminal')
      },
      {
        path: '/rb-service/posinfo/terminal/store/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/store/sound')
      },
      {
        path: '/rb-service/posinfo/terminal/store/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/store/printer')
      },
      {
        path: '/rb-service/posinfo/terminal/cashier/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/cashier/sound')
      },
      {
        path: '/rb-service/posinfo/terminal/cashier/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/cashier/printer')
      },
      {
        path: '/rb-service/posinfo/terminal/taika/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/taika/sound')
      },
      {
        path: '/rb-service/posinfo/terminal/taika/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/taika/printer')
      },
      {
        path: '/rb-service/posinfo/pos_info_store_details',
        name: '管理门店',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_store_details')
      },
      {
        path: '/rb-service/posinfo/pos_info_cashier',
        name: '收银员管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_cashier')
      },
      {
        path: '/rb-service/posinfo/pos_info_terminal',
        name: '终端管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_terminal')
      },
      {
        path: '/rb-service/posinfo/pluginUnit',
        name: '第三方插件管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pluginUnit')
      },
      {
        path: '/rb-service/posinfo/pos_info_terminal_bind',
        name: '终端管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_terminal_bind')
      },
      {
        path: '/rb-service/posinfo/pos_info_equipment',
        name: '设备管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_menu/pos_info_equipment')
      },
      // {
      //   path: '/rb-service/posinfo/pos_info_cashier',
      //   name: '收银员管理',
      //   component: () =>
      //     import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_cashier')
      // },
    ]
  },
  {
    path: '/pos_group_details',
    component: Layout,
    redirect: '/pos_group_details',
    children: [{
      path: '/rb-service/posgroup/pos_group_details',
      name: '集团商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/posgroup/pos_group_details')
    }]
  },
  {
    path: '/mer_change_alter',
    component: Layout,
    redirect: '/mer_change_alter',
    children: [{
      path: '/rb-service/merrecord/mer_change_menu/mer_change_alter',
      name: '商户变更',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/merrecord/mer_change_menu/mer_change_alter')
    },
    {
      path: '/rb-service/merrecord/mer_change_menu/mer_change_modify',
      name: '变更驳回编辑',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/merrecord/mer_change_menu/mer_change_alter')
    },
    {
      path: '/rb-service/merrecord/mer_change_menu/mer_change_details',
      name: '商户变更详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/merrecord/mer_change_menu/mer_change_details')
    }]
  },
  {
    path: '/pos_info_audit_edit',
    component: Layout,
    redirect: '/pos_info_audit_edit',
    children: [{
      path: '/rb-service/posinfo/pos_info_audit_edit',
      name: '商户修改',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/posinfo/pos_info_audit_edit')
    }]
  },
  {
    path: '/store',
    component: Layout,
    redirect: '/store',
    children: [
    {
      path: '/rb-service/store/stock_allot',
      name: '库存调拨',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/store/stock_menu/stock_allot')
    },
    {
      path: '/rb-service/store/stock_rebate',
      name: '库存回拨',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-service/store/stock_menu/stock_rebate')
    }]
  },
  // {
  //   path: '/mer_change_audit',
  //   component: Layout,
  //   redirect: '/mer_change_audit',
  //   children: [{
  //     path: '/rb-service/merrecord/mer_change_audit',
  //     name: '变更审核',
  //     component: () =>
  //       import( /* webpackChunkName: "views" */ '@/views/rb-service/merrecord/mer_change_audit')
  //   }]
  // }, 
  {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
    }]
  }, {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
    }]
  }, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  }, {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [{
      path: 'form/:processDefinitionId',
      name: '请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
    }, {
      path: 'handle/:taskId/:processInstanceId/:businessId',
      name: '处理请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
    }, {
      path: 'detail/:processInstanceId/:businessId',
      name: '请假流程详情',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
    }]
  },
  {
    path: '/deal_management_details',
    component: Layout,
    redirect: '/dealManagement/deal_management_details',
    children: [
      {
        path: 'deal_management_details',
        name: '交易详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/dealManagement/deal_management_details')
      }
    ]
  },
  {
    path: '/serviceprofit',
    component: Layout,
    redirect: '/serviceprofit',
    children: [
      {
        path: 'service_profit_datail',
        name: '服务商分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/serviceprofit/service_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/serviceprofit/profit_gather')
      }
    ]
  },
  {
    path: '/childOemProfit',
    component: Layout,
    redirect: '/childOemProfit',
    children: [
      {
        path: 'service_profit_datail',
        name: '机构分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/childOemProfit/service_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/childOemProfit/profit_gather')
      }
    ]
  },
  {
    path: '/oemprofit',
    component: Layout,
    redirect: '/oemprofit',
    children: [
      {
        path: 'profit_datail',
        name: '分润详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/oemprofit/profit_datail')
      },
      {
        path: 'pos_profit_datail',
        name: '本级分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/oemprofit/pos_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-service/oemprofit/profit_gather')
      }
    ]
  },
  {
    path: '/invoiceMail',
    component: Layout,
    redirect: '/invoiceMail',
    children: [
      {
        path: 'invoice_mail_details',
        name: '发票详情',
        component: () => import('@/views/rb-service/invoiceMail/invoice_mail_details')
      }
    ]
  }
]
